package cn.foolishbird.crow.springmvc.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.List;

/**
 * 分页请求参数
 *
 * @author foolish bird
 * @email luohongtu@foolishbird.cn
 */
@ApiModel("分页请求参数")
public class PageRequest  implements Serializable {

    private static final long serialVersionUID = 6778689042286373326L;

    /**
     * 分页页数，从1 开始
     */
    @ApiModelProperty("分页页数，从1 开始")
    protected int pageNumber = 1;

    /**
     * 一页多少数据
     */
    @ApiModelProperty("一页多少数据")
    protected int pageSize = 20;

    /**
     * 排序
     */
    @ApiModelProperty("排序")
    protected List<Order> orders;


    public int getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(int pageNumber) {
        this.pageNumber = pageNumber;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public List<Order> getOrders() {
        return orders;
    }

    public void setOrders(List<Order> orders) {
        this.orders = orders;
    }
}
